package com.xiaoxi.templatemethodmode.service;

/**
 * @ClassName AbstractDisplay
 * @Description
 * @Author xiaoxi
 * @Date 2023/3/8 22:33
 * @Version 1.0
 */
public abstract class AbstractDisplay implements Display {

    @Override
    public final void display() {
        open();
        for (int i = 0; i < 5; i++) {
            print();
        }
        close();
    }

}
